var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    name:String,
    title:String,
    content:String,
    time:Date,
    cate:String, //当前分类
    keyword:String,
    like:Number,
    commentsnum:Number


 });
schema.plugin(mongoosePaginate);

module.exports= mongoose.model('News',  schema,'news');